package com.greenline.push.core.exception;

public class PushCenterException extends Exception {

	private static final long serialVersionUID = 1L;

	private int code = 0;

	private String message = "";

	public PushCenterException(String message) {
		super();
		this.message = message;
	}

	public PushCenterException(int errorCode, String message) {
		super();
		this.code = errorCode;
		this.message = message;
	}
	
	public PushCenterException(String message, Throwable cause){
		 super(message, cause);
		 this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
